package com.blqy.fr.user.client;

import com.blqy.fr.common.result.Result;
import com.blqy.fr.user.client.impl.TeamInfoDegradeFeignClient;
import com.blqy.fr.dto.SwitchTeamDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-user", fallback = TeamInfoDegradeFeignClient.class)
public interface TeamInfoFeignClient {

    @PostMapping("/api/page/team/switch")
    Result<?> switchCurrentTeam(@RequestBody SwitchTeamDto dto);

    @GetMapping("/api/page/team/sbJun/{userId}")
    public Result<Long> getTeamIdByUserId(@PathVariable Long userId);
}